import asyncio
import threading

from getWebsocket import BiliSocket
from ws_server import ws_open_server

bilisocket = BiliSocket()

async def run():
    await bilisocket.startup('23907710')


if __name__ == '__main__':
    # 创建一个线程来执行 WebSocket 通信
    websocket_thread = threading.Thread(target=ws_open_server)
    # 启动线程
    websocket_thread.start()
    asyncio.run(run())

